package com.dnjn.happiness.emo.controller;

import com.dnjn.happiness.common.core.web.domain.AjaxResult;
import com.dnjn.happiness.emo.config.HappinessEmoConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/open/demo")
public class OpenDemoController {

    @Autowired
    HappinessEmoConfig emoConfig;

    @GetMapping("/config")
    public AjaxResult getConfig(String key){
        return AjaxResult.success(emoConfig);
    }
}
